package com.niit.mapper;


import com.niit.entity.Movie;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


@Mapper
public interface MovieMapper {




    List<Movie> findAllMovies();

    Movie findMovieById(Integer id);

    Movie findMovieByName(String name);

    void addMovie(Movie movie);

    int updateMovie(Movie movie);

    int deleteMovie(Integer movie);

}
